NIELIT O Level Exam

Suppose listExample is [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after listExample.pop()?

Suppose listExample is [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after listExample.pop()?

मान लीजिए सूची है। [3, 4, 5, 20, 5, 25, 1, 3], listExample.pop() के बाद लिस्ट1 क्या है।

A. [3, 4, 5, 20, 5, 25, 1]

B. [1, 3, 3, 4, 5, 5, 20, 25]

C. [3, 5, 20, 5, 25, 1, 3]

D. [1, 3, 4, 5, 20, 5, 25]




Correct Answer is :

A. [3, 4, 5, 20, 5, 25, 1]



Explanation
pop() by default will remove the last element.
CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad